.class Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;
.super Ljava/lang/Object;
.source "ViewImage21.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/cm;

.field final synthetic b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;Les/cm;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iput-object p2, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->a:Les/cm;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->m:Les/dm;

    invoke-interface {v0}, Les/dm;->getCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    return-void

    .line 3
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    iget v2, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->l:I

    if-gt v0, v2, :cond_1

    add-int/lit8 v0, v0, -0x1

    .line 4
    iput v0, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->l:I

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->m:Les/dm;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->a:Les/cm;

    invoke-interface {v0, v1}, Les/dm;->a(Les/cm;)I

    move-result v0

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    new-instance v2, Lcom/estrongs/android/pop/app/imageviewer/c;

    iget-object v3, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v3, v3, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    iget-object v4, v3, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->m:Les/dm;

    invoke-direct {v2, v3, v4}, Lcom/estrongs/android/pop/app/imageviewer/c;-><init>(Landroid/content/Context;Les/dm;)V

    invoke-static {v1, v2}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->a(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;Lcom/estrongs/android/pop/app/imageviewer/c;)Lcom/estrongs/android/pop/app/imageviewer/c;

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->x(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)Lcom/estrongs/android/pop/app/imageviewer/c;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v2, v2, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    iget-object v2, v2, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->h:Lcom/estrongs/android/pop/app/imageviewer/b;

    invoke-virtual {v1, v2}, Lcom/estrongs/android/pop/app/imageviewer/c;->a(Lcom/estrongs/android/pop/app/imageviewer/b;)V

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    new-instance v2, Landroid/util/DisplayMetrics;

    invoke-direct {v2}, Landroid/util/DisplayMetrics;-><init>()V

    iput-object v2, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->D:Landroid/util/DisplayMetrics;

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-virtual {v1}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v1

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v2, v2, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    iget-object v2, v2, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->D:Landroid/util/DisplayMetrics;

    invoke-virtual {v1, v2}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    const/high16 v1, 0x42a80000    # 84.0f

    .line 10
    iget-object v2, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v2, v2, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    iget-object v3, v2, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->D:Landroid/util/DisplayMetrics;

    iget v3, v3, Landroid/util/DisplayMetrics;->scaledDensity:F

    mul-float v3, v3, v1

    float-to-int v1, v3

    .line 11
    invoke-static {v2}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->x(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)Lcom/estrongs/android/pop/app/imageviewer/c;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/estrongs/android/pop/app/imageviewer/c;->b(I)V

    .line 12
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->c(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)Lcom/estrongs/android/pop/app/imageviewer/ESGallery;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v2, v2, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->x(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)Lcom/estrongs/android/pop/app/imageviewer/c;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/Gallery;->setAdapter(Landroid/widget/SpinnerAdapter;)V

    .line 13
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v1, v1, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->c(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)Lcom/estrongs/android/pop/app/imageviewer/ESGallery;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/Gallery;->setSelection(I)V

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->B:Lcom/estrongs/android/widget/RealViewSwitcher;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ViewAnimator;->setVisibility(I)V

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->v(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)V

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    const v2, 0x7f09053b

    invoke-virtual {v0, v2}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-virtual {v0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v2, "Chromecast"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->f(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)Lcom/estrongs/chromecast/ChromeCastManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/chromecast/ChromeCastManager;->isConnected()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->h(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)V

    goto :goto_0

    .line 20
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->i(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)Lcom/estrongs/chromecast/ChromeCastDialog;

    move-result-object v0

    if-nez v0, :cond_3

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->j(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)V

    .line 22
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f$b;->b:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21$f;->a:Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;->i(Lcom/estrongs/android/pop/app/imageviewer/ViewImage21;)Lcom/estrongs/chromecast/ChromeCastDialog;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/chromecast/ChromeCastDialog;->show()V

    :cond_4
    :goto_0
    return-void
.end method
